package cn.wsalix.shop.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import cn.anlaser.repository.SimpleRepository;
import cn.wsalix.shop.entity.Shop;

public interface ShopRepository extends SimpleRepository<Shop> {
	@Query("select r from Shop r where r.alias=:alias")
	Shop findByAlias(@Param("alias") String alias);

}
